const fs = require("fs");
const path = require("path");
const contentPath = path.resolve(__dirname, "./data.txt");

// 同步读取
const data = fs.readFileSync(contentPath);

// 转换 Buffer
console.log(data.toString());
